projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6be0603
)
levelbar: Remove unneeded checks
author
Benjamin Otte
<otte@redhat.com>
Wed, 30 Apr 2014 07:22:29 +0000
(09:22 +0200)
committer
Benjamin Otte
<otte@redhat.com>
Thu, 1 May 2014 12:51:28 +0000
(14:51 +0200)
Size vfuncs always get non-null out variables passed, so no need to
check for NULL.
gtk/gtklevelbar.c
patch
|
blob
|
history
diff --git
a/gtk/gtklevelbar.c
b/gtk/gtklevelbar.c
index 1af260bdc273baf308d59816ee5cf558b90ed1bf..755002b43ea84477b7d563554c438bbfa04b61b5 100644
(file)
--- a/
gtk/gtklevelbar.c
+++ b/
gtk/gtklevelbar.c
@@
-545,10
+545,8
@@
gtk_level_bar_get_preferred_width (GtkWidget *widget,
else
width += block_width;
- if (minimum)
- *minimum = width;
- if (natural)
- *natural = width;
+ *minimum = width;
+ *natural = width;
}
static void
@@
-572,10
+570,8
@@
gtk_level_bar_get_preferred_height (GtkWidget *widget,
else
height += block_height;
- if (minimum)
- *minimum = height;
- if (natural)
- *natural = height;
+ *minimum = height;
+ *natural = height;
}
static void